<style>
    .layui-container{
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
</style>
<div class="layui-container">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md8">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            快捷方式
                        </div>
                        <div class="layui-card-body layui-row">
                            <a href="{:url('admin/system.menu/importmenu')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-tree"></i>
                                <p>
                                    导入菜单
                                </p>
                            </a>
                            <a href="{:url('admin/system.setting/clearcache')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-delete"></i>
                                <p>
                                    清楚缓存
                                </p>
                            </a>
                            <a href="{:url('admin/system.setting/site')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-engine"></i>
                                <p>
                                    站点设置
                                </p>
                            </a>
                            <a href="{:url('admin/system.setting/systemsetting')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-website"></i>
                                <p>
                                    系统设置
                                </p>
                            </a>

                            <a href="{:url('admin/system.menu/index')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-spread-left"></i>
                                <p>
                                    菜单管理
                                </p>
                            </a>

                            <a href="{:url('admin/system.administrator/index')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-user"></i>
                                <p>
                                    管理员
                                </p>
                            </a>

                            <a href="{:url('admin/system.role/index')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-find-fill"></i>
                                <p>
                                    角色管理
                                </p>
                            </a>
                            <a href="{:url('admin/system.node/addnode')}" class="kj-menu-btn layui-col-xs3"  >
                                <i class="layui-icon layui-icon-template-1"></i>
                                <p>
                                    导入节点
                                </p>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            本站用户
                        </div>
                        <div class="layui-card-body ">
                            <ul class="data-gl layui-row ">
                                <li class="layui-col-xs6">
                                    <span>总用户</span>
                                    <p>{$userCount.countUser}</p>
                                </li>
                                <li class="layui-col-xs6">
                                    <span>每天用户</span>
                                    <p>{$userCount.toDayCountUser}</p>
                                </li>
                                <li class="layui-col-xs6">
                                    <span>一周用户</span>
                                    <p>{$userCount.weekCountUser}</p>
                                </li>
                                <li class="layui-col-xs6">
                                    <span>本月用户</span>
                                    <p>{$userCount.monthCount}</p>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card" >
                        <div class="layui-card-header">
                            <strong>流量统计</strong>
                        </div>
                        <div class="layui-card-body">
                            <table class="layui-table" lay-skin="row">
                                <tr>
                                    <td></td>
                                    <td align="right">浏览量(PV)</td>
                                    <td align="right">访客数(UV)	</td>
                                    <td align="right">IP数</td>
                                    <td align="right">跳出率</td>
                                    <td align="right">平均访问时长</td>
                                    <td align="right">转化次数</td>
                                </tr>
                                {volist name='tongji.body.data.0.result.items.1' id='v'}
                                <tr>
                                    <td>
                                        {if $key==0}
                                        昨日
                                        {else /}
                                        今日
                                        {/if}
                                    </td>
                                    {volist name='v' id='vv'}
                                    <td align="right">
                                        {if $key==4}
                                        {:Sec2Time($vv)}
                                        {else /}
                                        {$vv}
                                        {/if}
                                        {if $key==3}%{/if}
                                    </td>
                                    {/volist}
                                </tr>
                                {/volist}
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row ">
                <div class="layui-card">
                    <div class="layui-card-header">
                        版本更新信息通知
                    </div>
                    <div class="layui-card-body layui-row ">
                        <table class="layui-table">
                            <colgroup>
                                <col width="120">
                                <col width="200">
                                <col width="200">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>作者</th>
                                <th>发布时间</th>
                                <th>版本号</th>
                                <th>标题</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name='versionList' id='v'}
                            <tr>
                                <td>{$v.author}</td>
                                <td>{$v.update_time}</td>
                                <td>{$v.version_code.title|default=''} {$v.version_number}</td>
                                <td>
                                    <a href="{:url('admin/system.version/editversion',['id'=>$v['id']])}" title="详情" class="version-title">{$v.title}</a>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">性能优化</div>
                <div class="layui-card-body">
                    <ul>
                        <li>
                            <a href="{:url('admin/system.setting/createclass')}">生成类库应映射</a>
                        </li>
                        <li>
                            <a href="{:url('admin/system.setting/createconfig')}">生成配置缓存</a>
                        </li>
                        <li>
                            <a href="{:url('admin/system.setting/createtablefield')}">生成数据表字段缓存</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

